<template>
  <div class="avue-logo">
    <transition name="fade">
      <span v-if="getScreen(isCollapse)" class="avue-logo_subtitle" key="0">
        {{ website.logo }}
      </span>
    </transition>
    <transition-group name="fade">
      <template v-if="getScreen(!isCollapse)">
       
        <span class="avue-logo_title" key="1"> <img class="top-icon" src="/img/bg/bj2.png" alt="">{{ website.indexTitle }} </span>
      </template>
    </transition-group>
  </div>
</template>

<script>
import { mapGetters } from 'vuex';

export default {
  name: 'logo',
  data() {
    return {};
  },
  created() {},
  computed: {
    ...mapGetters(['isCollapse']),
  },
  methods: {},
};
</script>
<style scoped>
.top-icon{
  width: 40px;
  height: 40px;
  margin: 0px 20px;
}
.avue-logo_title{
  width: 100%;
  display: flex;
  align-items: center;
  padding:0px 10px;
  justify-content: flex-start;
}
</style>
